#pragma once

class CLoginDlg : public CDialogImpl<CLoginDlg>, public CWinDataExchange<CLoginDlg>
{
public:
	enum { IDD = IDD_DIALOG_LOGIN };

	BEGIN_MSG_MAP(CLoginDlg)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_ID_HANDLER(IDOK, OnOK)
		COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
//        MESSAGE_HANDLER(WM_PAINT, OnPaint)
	END_MSG_MAP()


	BEGIN_DDX_MAP(CLoginDlg)
		DDX_TEXT( IDC_EDIT_USER, m_strUser)
		DDX_TEXT( IDC_EDIT_PASSWORD, m_strPassword)
	END_DDX_MAP()


	LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	LRESULT OnOK(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
	LRESULT OnCancel(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
    LRESULT OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);


protected:
	CString m_strUser;
	CString m_strPassword;

};
